
// 健康档案 接口相关
import request from "../../untils/request.js"

/**
 * 
 *  get
 *  
 */

// 获取数据字典
export const getdict = (params) => {
    return request.get("/outpatient/index/dict", { params } )
}

// 过敏信息表
export const aiseList = (params) => {
    return request.get("/outpatient/aise/list", { params } )
}
// 居民健康档案-信息
export const aiseDetails = (params) => {
     return request.get(`/outpatient/docphr/${params.id}`, { params: {} }) 
}

/**
 * 
 *  post
 *  
 */

//新增健康档案
export const addDocphr = (data) => {
    return request.post("/outpatient/docphr", data )
}


/**
 * 
 *  put
 *  
 */

//修改健康档案
export const updateDocphr = (data) => {
    return request.put("/outpatient/docphr", data )
}

/**
 * 
 * DELETE 
 *  
 */   


// 暴露
export default{
	getdict,aiseList,aiseDetails,
	addDocphr,updateDocphr
}